package cn.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 配送员消息通知表
 * </p>
 *
 * @author mp
 * @since 2025-06-22
 */
@Getter
@Setter
@TableName("deliveryman_notifications")
public class DeliverymanNotifications implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer deliverymanId;

    /**
     * 通知类型 (e.g., new_order, system, weather, earnings, task_update)
     */
    @TableField("`type`")
    private String type;

    /**
     * 通知标题
     */
    private String title;

    /**
     * 通知内容
     */
    private String message;

    /**
     * 是否已读 (0: 未读, 1: 已读)
     */
    private int isRead;

    /**
     * 关联实体ID (如订单ID、任务包ID)
     */
    private String relatedEntityId;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;
}
